package com.hrm.entity;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Message implements Serializable{

	private static final long serialVersionUID = 1L;
	private String status;
	private String msg;
	private Date timestamp;
	
	public Message(){}
	
	public Message(String status,String msg,Date timestamp){
		this.status=status;
		this.msg=msg;
		this.timestamp=timestamp;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}
	
	public String toJSONString(){
		StringBuffer sBuffer = new StringBuffer();
		sBuffer.append("{");
		sBuffer.append("\"status\":\""+this.status+"\",");
		sBuffer.append("\"msg\":\""+this.msg+"\",");
		sBuffer.append("\"timestamp\":\""+this.timestamp+"\"");
		sBuffer.append("}");
		return sBuffer.toString();
	}
}
